﻿using System;
using wojilu.ORM;

namespace wojilu.Apps.Qycms.Domain
{
    [Table("ybb_lngpack")]
    [Serializable]
    public class Lngpack : ObjectBase<Lngpack>
    {
        public Lngpack() { }

        public Lngpack(Int32 pid, String lng, String title, String keycode, String langstr, Int32 lockin, Int32 typeid)
        {
            this.pid = pid;
            this.lng = lng;
            this.title = title;
            this.keycode = keycode;
            this.langstr = langstr;
            this.lockin = lockin;
            this.typeid = typeid;
            this.insert();
        }

        [Default(50), NotNull("请输入排序"), Column(Length = 5)]
        public Int32 pid { get; set; }

        [Default("cn"), NotNull(""), Column(Length = 50)]
        public String lng { get; set; }

        [NotNull(""), Column(Length = 150)]
        public String title { get; set; }

        [Default(""), NotNull(""), Column(Length = 50)]
        public String keycode { get; set; }

        [LongText, NotNull("")]
        public String langstr { get; set; }

        [TinyInt, Default(1), NotNull(""), Column(Length = 1)]
        public Int32 lockin { get; set; }

        [TinyInt, Default(1), NotNull(""), Column(Length = 1)]
        public Int32 typeid { get; set; }

    }

}
